package com.example.bbgds.test.home.widget;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;

import com.example.bbgds.test.R;

/**
 * Created by zjzhu on 2016/4/26.
 */
public class MainWidgetHolder extends ItemViewHolder {

    public MainWidgetHolder(View itemView) {
        super(itemView);
    }

    @Override
    public void bindData(ItemInfo info, int poistion) {

    }

    public static MainWidgetHolder buildViewHolder(Context context) {
        View view = View.inflate(context, R.layout.main_widget, null);
        RecyclerView.LayoutParams lp = new RecyclerView.LayoutParams(RecyclerView.LayoutParams.WRAP_CONTENT, RecyclerView.LayoutParams.MATCH_PARENT);
        view.setLayoutParams(lp);
        return new MainWidgetHolder(view);
    }
}
